home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
plnk081.zip
/
pilot-link.0.8.1
/
scripts
/
tarball.c
< prev
Wrap
C/C++ Source or Header
|
1997-08-03
|
538b
|
23 lines
#include <stdio.h>
#include "pi-socket.h"
void main(void)
{
char dir[80],cmd[256];
sprintf(dir, "pilot-link.%d.%d.%d", PILOT_LINK_VERSION, PILOT_LINK_MAJOR, PILOT_LINK_MINOR);
sprintf(cmd, "rm tarball; cd ..; rm %s; ln -s plk %s", dir, dir);
printf("%s\n",cmd);
system(cmd);
sprintf(cmd, "cd ..; tar cvf %s.tar %s/", dir, dir);
printf("%s\n",cmd);
fflush(stdout);
system(cmd);
sprintf(cmd, "cd ..; gzip %s.tar", dir);
printf("%s\n",cmd);
system(cmd);
sprintf(cmd, "cd ..; rm %s", dir);
printf("%s\n",cmd);
system(cmd);
}